#include "stdafx.h"
#include "PxMsg.h"


CPxMsg::CPxMsg()
{
}


CPxMsg::~CPxMsg()
{
}

int CPxMsg::CreateMsgBody(int nLen /* = 0 */)
{
	if (m_pBody != nullptr)
	{
		delete[] m_pBody;
		m_pBody = nullptr;
	} 
	
	if (nLen > 0)
	{
		m_pBody = new char[nLen];
	} 
	else
	{
		m_pBody = nullptr;
	}

	return 0;
}
